import java.util.Arrays;
import java.util.OptionalInt;

public class text1 {
    public int getnumsmax(int[] nums,int start,int end){
        int max=-1;
        for (int i=start;i<end;i++){
            if (nums[i]>max){
                max=i;
            }
        }
        return max;
    }

    public static void main(String[] args) {
        int[] s={3,2,5,7,8,43,68,9,3};
        for (int  i= 0; i <s.length-1 ; i++) {
            for (int j = 0; j < s.length-1-i; j++) {
                if (s[j]>s[j+1]){
                    int t=s[j];
                    s[j]=s[j+1];
                    s[j+1]=t;
                }
            }


        }
        for (int c:s
        ) {
            System.out.println(c);
        }
        }
    }
